package edu.zut;

public class First
{
        public static void main(String args[])
        {
            int i,sum1,sum2;
            sum1 = 0;
            sum2 = 0;
            for(i=1;i<100;)
            {
                sum1 += i;
                i += 2;
            }
            for(i=2;i<=100;)
            {
                sum2 += i;
                i += 2;
            }
            System.out.println("奇数的和是：" + sum1);
            System.out.println("偶数的和是：" + sum2);
        }
    }


